<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <!--<link href="config/css/bootstrap-3.3.7.min.css" rel="stylesheet" type="text/css"/>-->
    <link type="text/css" rel="stylesheet" href="index/css/reset.css">
    <link type="text/css" rel="stylesheet" href="bootrap-table/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="bootrap-table/bootstrap-table.min.css">
    <!--<link rel="stylesheet" type="text/css" href="config/js/layer/skin/default/layer.css">-->
    <!--<link type="text/css" rel="stylesheet" href="index/css/page.css">-->

    <title>供应商列表</title>
</head>
<body>

        <table class="table table-bordered"
               data-classes="table-no-bordered"
               data-click-to-select="true"
               data-search="true"
               id="table"
               style="margin: 20px auto 0; width: 80%;"
        >
            <thead>
            <tr>
                <th data-field="state" data-checkbox="true"></th>
                <th data-field="id">111</th>
                <th data-field="name">111</th>
                <th data-field="chosed">111</th>
            </tr>
            </thead>
        </table>


</body>
<script src="config/js/jquery-2.1.4.min.js"></script>
<script src="bootrap-table/bootstrap.min.js"></script>
<script src="bootrap-table/bootstrap-table.min.js"></script>
<!--<script src="config/js/layer/layer.js"></script>-->
<!--<script src="index/js/supplier.js"></script>-->
<script>
    $(function () {
        $.ajax({
            type:'get',
            url:'http://inmycars.ihengtian.top:8998/api/rest/firm/query/inspect/type',
            dataType:'json',
            success:function (res) {
                var ceshi = res.data.list;
                $('#table').bootstrapTable({
                    data: ceshi
                });
                $('.fixed-table-loading').hide();
            },
            error:function () {

            }
        });
    });
</script>
</html>